package date1124;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lu.jdog.util.Resource;

public class SpringTest {
	public static void main(String[] args) {
		// 创建 Spring 的 ApplicationContext
		String beadPath = Resource.getAssertPath(SpringTest.class, "beans.xml");
		ApplicationContext ctx = new ClassPathXmlApplicationContext(beadPath);
		// 输出 Spring 容器
		System.out.println(ctx);
		
		PersonService p = ctx.getBean("personService" , PersonService.class);
		p.info();
	}
}
